package com.essgle.service.impl;

import com.essgle.bean.Account;
import com.essgle.dao.AccountMapper;
import com.essgle.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by essgle on 2017/7/10.
 */
@Service
@Transactional
public class AccountServiceImpl implements AccountService{
    @Autowired
    private AccountMapper accountMapper;
    public int updateName(String name) {
        accountMapper.updateName("马龙磊1");
        accountMapper.updateName("马龙磊2");
        return 0;
    }

    public List<Account> getAll() {

        return accountMapper.getAll();
    }
}
